<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">
<body>

	<ui:composition template="template/template-principal.xhtml">

		<ui:define name="miolo">

			<div align="center">
			  <br/><br/><br/><br/><br/>
			
				<h:panelGrid rendered="#{validaLoginManagedbean.messages}">
					<h:messages id="messages"  styleClass="erro"/>
				</h:panelGrid>
				
				<h:panelGrid columns="3" width="400" columnClasses="coluna1, coluna2, cluna3" styleClass="texto" >	
					<h:outputText id="texto" value="E-mail:"/>
					<h:inputText id="inEmail" value="#{validaLoginManagedbean.email}" required="true" label="#{msgs.email}" style=" width : 200px; height : 35px; font-size: 14px;"/>
					<h:message for="inEmail" styleClass="erro"/>
					
					<h:outputText id="texto" value="Senha:"/>
					<h:inputSecret id="inSenha" value="#{validaLoginManagedbean.senha}" required="true" label="#{msgs.senha}" style=" width : 200px; height : 35px; font-size: 14px;"/>
					<h:message for="inSenha" styleClass="erro"/>
					
					<h:outputText id="texto" value=""/>
					<h:outputText id="texto" value=""/>			
					<h:commandLink action="#{esqueciSenhaManagedbean.redirect}" value="Esqueci Senha" immediate="true" styleClass="aviso"/>
				</h:panelGrid>
				
				<h:commandButton value="Entrar" action="#{validaLoginManagedbean.efetuaLogin}" style=" width : 150px; height : 40px;"/>
				
			</div>

		</ui:define>

	</ui:composition>

</body>

</html>